/**
 * Copyright by e-shion.net
 */
package net.xfok.ui.custom;

import net.xfok.ui.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;

/**
 * @author 2010-12-30 Howard
 *
 */
public class XViewGroup extends Activity implements OnTouchListener{
	private static final String TAG="XViewGroup";
	private MyViewGroup mVg;
	private MyView view;
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.view_group);  
        mVg=(MyViewGroup)findViewById(R.id.view_group);
        view=(MyView)findViewById(R.id.myView);
        view.setOnTouchListener(this);
//        view.invalidate();
    }
	@Override
	public boolean onTouch(View v, MotionEvent event) {
		// TODO Auto-generated method stub
		return view.onTouchEvent(event);
	}
}
